home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XARGS User Commands XARGS
-
-
-
- NNAAMMEE
- xargs - construct argument list(s) and execute utility.
-
- SSYYNNOOPPSSIISS
- xxaarrggss [[--tt]] [[[[--xx]] --nn nnuummbbeerr]] [[--ss ssiizzee]] [[uuttiilliittyy [[aarrgg ......]]]]
-
- DDEESSCCRRIIPPTTIIOONN
- The _x_a_r_g_s utility reads space, tab, newline and end-of-file
- delimited arguments from the standard input and executes the
- specified _u_t_i_l_i_t_y with them as arguments.
-
- The utility and any arguments specified on the command line
- are given to the _u_t_i_l_i_t_y upon each invocation, followed by
- some number of the arguments read from standard input. The
- _u_t_i_l_i_t_y is repeatedly executed until standard input is
- exhausted.
-
- Spaces, tabs and newlines may be embedded in arguments using
- single (`` ' '') or double (``"'') quotes or backslashes
- (``\''). Single quotes escape all non-single quote charac-
- ters, excluding newlines, up to the matching single quote.
- Double quotes escape all non-double quote characters,
- excluding newlines, up to the matching double quote. Any
- single character, including newlines, may be escaped by a
- backslash.
-
- The options are as follows:
-
- -n number
- Set the maximum number of arguments taken from standard
- input for each invocation of the utility. An invoca-
- tion of _u_t_i_l_i_t_y will use less than _n_u_m_b_e_r standard
- input arguments if the number of bytes accumulated (see
- the -_s option) exceeds the specified _s_i_z_e or there are
- fewer than _n_u_m_b_e_r arguments remaining for the last
- invocation of _u_t_i_l_i_t_y. The current default value for
- _n_u_m_b_e_r is 5000.
-
- -s size
- Set the maximum number of bytes for the command line
- length provided to _u_t_i_l_i_t_y. The sum of the length of
- the utility name and the arguments passed to _u_t_i_l_i_t_y
- (including NULL terminators) will be less than or equal
- to this number. The current default value for _s_i_z_e is
- ARG_MAX - 2048.
-
- -t Echo the command to be executed to standard error
- immediately before it is executed.
-
- -x Force _x_a_r_g_s to terminate immediately if a command line
- containing _n_u_m_b_e_r arguments will not fit in the speci-
- fied (or default) command line length.
-
-
-
- Sprite v1.0 1Q1 1
-
-
-
-
-
-
- XARGS User Commands XARGS
-
-
-
- If no _u_t_i_l_i_t_y is specified, _e_c_h_o(1) is used.
-
- Undefined behavior may occur if _u_t_i_l_i_t_y reads from the stan-
- dard input.
-
- The _x_a_r_g_s utility exits immediately (without processing any
- further input) if a command line cannot be assembled, _u_t_i_l_-
- _i_t_y cannot be invoked, an invocation of the utility is ter-
- minated by a signal or an invocation of the utility exits
- with a value of 255.
-
- The _x_a_r_g_s utility exits with a value of 0 if no error
- occurs. If _u_t_i_l_i_t_y cannot be invoked, _x_a_r_g_s exits with a
- value of 127. If any other error occurs, _x_a_r_g_s exits with a
- value of 1.
-
- SSEEEE AALLSSOO
- _e_c_h_o(1), _f_i_n_d(1)
-
- SSTTAANNDDAARRDDSS
- The _x_a_r_g_s utility is expected to be POSIX 1003.2 compliant.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v1.0 2Q2 2
-
-
-
-